package com.his.bean;

import java.io.Serializable;

/**
 * HIS医院基本信息表
 * @TableName dzm_his_hospital
 */
public class DzmHisHospital implements Serializable {
    /**
     * 用户id
     */
    private Integer id;

    /**
     * 医院名称
     */
    private String hospitalName;

    /**
     * 头像
     */
    private String picture;

    /**
     * 注册时间
     */
    private String createTime;

    /**
     * 医院编号
     */
    private String hospitalNumber;

    /**
     * 修改时间
     */
    private String updateTime;

    /**
     * 用户表userid
     */
    private Integer hid;

    /**
     * 医院地址
     */
    private String address;

    /**
     * 所有者姓名
     */
    private String ownerName;

    /**
     * 所有者手机号
     */
    private String ownerMobile;

    /**
     * 所属者职务
     */
    private String ownerPost;

    /**
     * 专业方向
     */
    private String majorField;

    /**
     * 诊所简介
     */
    private String introduction;

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 用户id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 医院名称
     */
    public String getHospitalName() {
        return hospitalName;
    }

    /**
     * 医院名称
     */
    public void setHospitalName(String hospitalName) {
        this.hospitalName = hospitalName;
    }

    /**
     * 头像
     */
    public String getPicture() {
        return picture;
    }

    /**
     * 头像
     */
    public void setPicture(String picture) {
        this.picture = picture;
    }

    /**
     * 注册时间
     */
    public String getCreateTime() {
        return createTime;
    }

    /**
     * 注册时间
     */
    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    /**
     * 医院编号
     */
    public String getHospitalNumber() {
        return hospitalNumber;
    }

    /**
     * 医院编号
     */
    public void setHospitalNumber(String hospitalNumber) {
        this.hospitalNumber = hospitalNumber;
    }

    /**
     * 修改时间
     */
    public String getUpdateTime() {
        return updateTime;
    }

    /**
     * 修改时间
     */
    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 用户表userid
     */
    public Integer getHid() {
        return hid;
    }

    /**
     * 用户表userid
     */
    public void setHid(Integer hid) {
        this.hid = hid;
    }

    /**
     * 医院地址
     */
    public String getAddress() {
        return address;
    }

    /**
     * 医院地址
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * 所有者姓名
     */
    public String getOwnerName() {
        return ownerName;
    }

    /**
     * 所有者姓名
     */
    public void setOwnerName(String ownerName) {
        this.ownerName = ownerName;
    }

    /**
     * 所有者手机号
     */
    public String getOwnerMobile() {
        return ownerMobile;
    }

    /**
     * 所有者手机号
     */
    public void setOwnerMobile(String ownerMobile) {
        this.ownerMobile = ownerMobile;
    }

    /**
     * 所属者职务
     */
    public String getOwnerPost() {
        return ownerPost;
    }

    /**
     * 所属者职务
     */
    public void setOwnerPost(String ownerPost) {
        this.ownerPost = ownerPost;
    }

    /**
     * 专业方向
     */
    public String getMajorField() {
        return majorField;
    }

    /**
     * 专业方向
     */
    public void setMajorField(String majorField) {
        this.majorField = majorField;
    }

    /**
     * 诊所简介
     */
    public String getIntroduction() {
        return introduction;
    }

    /**
     * 诊所简介
     */
    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DzmHisHospital other = (DzmHisHospital) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getHospitalName() == null ? other.getHospitalName() == null : this.getHospitalName().equals(other.getHospitalName()))
            && (this.getPicture() == null ? other.getPicture() == null : this.getPicture().equals(other.getPicture()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getHospitalNumber() == null ? other.getHospitalNumber() == null : this.getHospitalNumber().equals(other.getHospitalNumber()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getHid() == null ? other.getHid() == null : this.getHid().equals(other.getHid()))
            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
            && (this.getOwnerName() == null ? other.getOwnerName() == null : this.getOwnerName().equals(other.getOwnerName()))
            && (this.getOwnerMobile() == null ? other.getOwnerMobile() == null : this.getOwnerMobile().equals(other.getOwnerMobile()))
            && (this.getOwnerPost() == null ? other.getOwnerPost() == null : this.getOwnerPost().equals(other.getOwnerPost()))
            && (this.getMajorField() == null ? other.getMajorField() == null : this.getMajorField().equals(other.getMajorField()))
            && (this.getIntroduction() == null ? other.getIntroduction() == null : this.getIntroduction().equals(other.getIntroduction()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getHospitalName() == null) ? 0 : getHospitalName().hashCode());
        result = prime * result + ((getPicture() == null) ? 0 : getPicture().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getHospitalNumber() == null) ? 0 : getHospitalNumber().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getHid() == null) ? 0 : getHid().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        result = prime * result + ((getOwnerName() == null) ? 0 : getOwnerName().hashCode());
        result = prime * result + ((getOwnerMobile() == null) ? 0 : getOwnerMobile().hashCode());
        result = prime * result + ((getOwnerPost() == null) ? 0 : getOwnerPost().hashCode());
        result = prime * result + ((getMajorField() == null) ? 0 : getMajorField().hashCode());
        result = prime * result + ((getIntroduction() == null) ? 0 : getIntroduction().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", hospitalName=").append(hospitalName);
        sb.append(", picture=").append(picture);
        sb.append(", createTime=").append(createTime);
        sb.append(", hospitalNumber=").append(hospitalNumber);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", hid=").append(hid);
        sb.append(", address=").append(address);
        sb.append(", ownerName=").append(ownerName);
        sb.append(", ownerMobile=").append(ownerMobile);
        sb.append(", ownerPost=").append(ownerPost);
        sb.append(", majorField=").append(majorField);
        sb.append(", introduction=").append(introduction);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}